import request from '@/utils/request'

// 查询学校列表列表
export function listSchool(query) {
    return request({
        url: '/campus/school/list',
        method: 'get',
        params: query
    })
}

// 查询学校列表详细
export function getSchool(id) {
    return request({
        url: '/campus/school/' + id,
        method: 'get'
    })
}

// 新增学校列表
export function addSchool(data) {
    return request({
        url: '/campus/school',
        method: 'post',
        data: data
    })
}

// 修改学校列表
export function updateSchool(data) {
    return request({
        url: '/campus/school',
        method: 'put',
        data: data
    })
}

// 删除学校列表
export function delSchool(id) {
    return request({
        url: '/campus/school/' + id,
        method: 'delete'
    })
}

export function getSchoolInfo() {
    return request({
        url: '/campus/school/getSchoolInfo',
        method: 'get'
    })
}

export function getProvinceListFun() {
    return request({
        url: '/find/findProvincesList',
        method: 'get'
    })
}

export function getCityListFun(data) {
    return request({
        url: '/find/findCityList',
        method: 'post',
        data: data
    })
}

export function getDistrictListFun(data) {
    return request({
        url: '/find/findDistrictsList',
        method: 'post',
        data: data
    })
}

export function getbankFun() {
    return request({
        url: '/campus/school/getbankList',
        method: 'get',
    })
}
export function schoolAuth(data) {
    return request({
        url: '/campus/schoolAuth',
        method: 'post',
        data: data
    })
}